|
1: |
|
app(f,0) |
→ true |
2: |
|
app(f,1) |
→ false |
3: |
|
app(f,app(s,x)) |
→ app(f,x) |
4: |
|
app(app(app(if,true),app(s,x)),app(s,y)) |
→ app(s,x) |
5: |
|
app(app(app(if,false),app(s,x)),app(s,y)) |
→ app(s,y) |
6: |
|
app(app(g,x),app(c,y)) |
→ app(c,app(app(g,x),y)) |
7: |
|
app(app(g,x),app(c,y)) |
→ app(app(g,x),app(app(app(if,app(f,x)),app(c,app(app(g,app(s,x)),y))),app(c,y))) |
|
There are 12 dependency pairs:
|
8: |
|
APP(f,app(s,x)) |
→ APP(f,x) |
9: |
|
APP(app(g,x),app(c,y)) |
→ APP(c,app(app(g,x),y)) |
10: |
|
APP(app(g,x),app(c,y)) |
→ APP(app(g,x),y) |
11: |
|
APP(app(g,x),app(c,y)) |
→ APP(app(g,x),app(app(app(if,app(f,x)),app(c,app(app(g,app(s,x)),y))),app(c,y))) |
12: |
|
APP(app(g,x),app(c,y)) |
→ APP(app(app(if,app(f,x)),app(c,app(app(g,app(s,x)),y))),app(c,y)) |
13: |
|
APP(app(g,x),app(c,y)) |
→ APP(app(if,app(f,x)),app(c,app(app(g,app(s,x)),y))) |
14: |
|
APP(app(g,x),app(c,y)) |
→ APP(if,app(f,x)) |
15: |
|
APP(app(g,x),app(c,y)) |
→ APP(f,x) |
16: |
|
APP(app(g,x),app(c,y)) |
→ APP(c,app(app(g,app(s,x)),y)) |
17: |
|
APP(app(g,x),app(c,y)) |
→ APP(app(g,app(s,x)),y) |
18: |
|
APP(app(g,x),app(c,y)) |
→ APP(g,app(s,x)) |
19: |
|
APP(app(g,x),app(c,y)) |
→ APP(s,x) |
|
The approximated dependency graph contains 2 SCCs:
{8}
and {10-13,17}.